<!DOCTYPE html>
<html>
<head>
    <title>单位客户管理</title>
    #parse("sys/header.html")
</head>
<body>
<div id="rrapp" v-cloak>
	<div v-show="showList">
        <Row :gutter="16">
            <i-col span="4">
                <i-input v-model="q.name" @on-enter="query" placeholder="名称"/>
            </i-col>
            <i-button @click="query">查询</i-button>
			#if($shiro.hasPermission("customermanager:save"))
            <i-button type="info" @click="add"><i class="fa fa-plus"></i>&nbsp;新增</i-button>
			#end
			#if($shiro.hasPermission("customermanager:update"))
            <i-button type="warning" @click="update"><i class="fa fa-pencil-square-o"></i>&nbsp;修改</i-button>
			#end
			#if($shiro.hasPermission("customermanager:delete"))
            <i-button type="error" @click="del"><i class="fa fa-trash-o"></i>&nbsp;删除</i-button>
			#end
        </Row>
	    <table id="jqGrid"></table>
	    <div id="jqGridPager"></div>
    </div>

    <Card v-show="!showList">
        <p slot="title">{{title}}</p>
		<i-form ref="formValidate" :model="tCustomerManager" :rules="ruleValidate" :label-width="80">
            <Form-item label="客户编码" prop="customerCode">
                <i-input v-model="tCustomerManager.customerCode" placeholder="客户编码"/>
            </Form-item>
            <Form-item label="客户中文名称" prop="customerName">
                <i-input v-model="tCustomerManager.customerName" placeholder="客户中文名称"/>
            </Form-item>
            <Form-item label="客户英文名称" prop="customerEnglishName">
                <i-input v-model="tCustomerManager.customerEnglishName" placeholder="客户英文名称"/>
            </Form-item>
            <Form-item label="客户简称" prop="customerAbbreviation">
                <i-input v-model="tCustomerManager.customerAbbreviation" placeholder="客户简称"/>
            </Form-item>
            <Form-item label="客户类型" prop="customerType">
                <i-input v-model="tCustomerManager.customerType" placeholder="客户类型"/>
            </Form-item>
            <Form-item label="公司联络电话" prop="customerTel">
                <i-input v-model="tCustomerManager.customerTel" placeholder="公司联络电话"/>
            </Form-item>
            <Form-item label="所属业务员" prop="customerSalesman">
                <i-input v-model="tCustomerManager.customerSalesman" placeholder="所属业务员"/>
            </Form-item>
            <Form-item label="客户性质" prop="customerNature">
                <i-input v-model="tCustomerManager.customerNature" placeholder="客户性质"/>
            </Form-item>
            <Form-item label="是否有效" prop="isValid">
                <i-input v-model="tCustomerManager.isValid" placeholder="是否有效"/>
            </Form-item>
            <Form-item label="主管机构" prop="competentAuthority">
                <i-input v-model="tCustomerManager.competentAuthority" placeholder="主管机构"/>
            </Form-item>
            <Form-item label="电子邮件" prop="email">
                <i-input v-model="tCustomerManager.email" placeholder="电子邮件"/>
            </Form-item>
            <Form-item label="网址" prop="url">
                <i-input v-model="tCustomerManager.url" placeholder="网址"/>
            </Form-item>
            <Form-item label="纳税识别号" prop="taxNumber">
                <i-input v-model="tCustomerManager.taxNumber" placeholder="纳税识别号"/>
            </Form-item>
            <Form-item label="经营执照号码" prop="businessNumber">
                <i-input v-model="tCustomerManager.businessNumber" placeholder="经营执照号码"/>
            </Form-item>
            <Form-item label="固定电话" prop="telephone">
                <i-input v-model="tCustomerManager.telephone" placeholder="固定电话"/>
            </Form-item>
            <Form-item label="移动电话" prop="phone">
                <i-input v-model="tCustomerManager.phone" placeholder="移动电话"/>
            </Form-item>
            <Form-item label="传真" prop="fax">
                <i-input v-model="tCustomerManager.fax" placeholder="传真"/>
            </Form-item>
            <Form-item label="邮政编码" prop="postalCode">
                <i-input v-model="tCustomerManager.postalCode" placeholder="邮政编码"/>
            </Form-item>
            <Form-item label="联系地址" prop="address">
                <i-input v-model="tCustomerManager.address" placeholder="联系地址"/>
            </Form-item>
            <Form-item label="会员类别" prop="memberType">
                <i-input v-model="tCustomerManager.memberType" placeholder="会员类别"/>
            </Form-item>
            <Form-item label="会员卡号" prop="memberCard">
                <i-input v-model="tCustomerManager.memberCard" placeholder="会员卡号"/>
            </Form-item>
            <Form-item label="会员级别" prop="memberLevel">
                <i-input v-model="tCustomerManager.memberLevel" placeholder="会员级别"/>
            </Form-item>
            <Form-item label="会籍开始时间" prop="memberAddtime">
                <i-input v-model="tCustomerManager.memberAddtime" placeholder="会籍开始时间"/>
            </Form-item>
            <Form-item label="会籍结束时间" prop="memberEndtime">
                <i-input v-model="tCustomerManager.memberEndtime" placeholder="会籍结束时间"/>
            </Form-item>
            <Form-item label="一级业务" prop="firstLevelBusiness">
                <i-input v-model="tCustomerManager.firstLevelBusiness" placeholder="一级业务"/>
            </Form-item>
            <Form-item label="二级业务" prop="twLevelBusiness">
                <i-input v-model="tCustomerManager.twLevelBusiness" placeholder="二级业务"/>
            </Form-item>
            <Form-item label="主营业务" prop="mainBusiness">
                <i-input v-model="tCustomerManager.mainBusiness" placeholder="主营业务"/>
            </Form-item>
            <Form-item label="主营业务描述" prop="description">
                <i-input v-model="tCustomerManager.description" placeholder="主营业务描述"/>
            </Form-item>
            <Form-item label="添加时间" prop="addtime">
                <i-input v-model="tCustomerManager.addtime" placeholder="添加时间"/>
            </Form-item>
            <Form-item label="修改时间" prop="mofidytime">
                <i-input v-model="tCustomerManager.mofidytime" placeholder="修改时间"/>
            </Form-item>
            <Form-item>
                <i-button type="primary" @click="handleSubmit('formValidate')">提交</i-button>
                <i-button type="warning" @click="reload" style="margin-left: 8px"/>返回</i-button>
                <i-button type="ghost" @click="handleReset('formValidate')" style="margin-left: 8px">重置</i-button>
            </Form-item>
        </i-form>
	</Card>
</div>

<script src="${rc.contextPath}/js/customer/customerManager.js?_${date.systemTime}"></script>
</body>
</html>